package com.qf.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.qf.shop.entity.Orders;
import com.qf.shop.entity.Pay;
import com.qf.shop.pojo.QueryOrder;
import com.qf.shop.vo.ChooseAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    List<Orders> getAllOrder(QueryOrder queryOrder);

    Orders getOrderUserById(@Param("id") Integer id);



    List<ChooseAddress> getChooseAddress(@Param("id") Integer id);

    void changeAddress(@Param("aid") Integer aid,@Param("uid") Integer uid);

}
